package cn.xt.bean;

import java.util.HashSet;
import java.util.Set;

public class City {
	private int codeid;// int PRIMARY key auto_increment,
	private City parent;
	private int parentid;
	private String cityName;// VARCHAR(20) not NULL
	private Set<House> house=new HashSet<House>();


	public int getParentid() {
		return parentid;
	}

	public void setParentid(int parentid) {
		this.parentid = parentid;
	}

	public City getParent() {
		return parent;
	}
	public void setParent(City parent) {
		this.parent = parent;
	}


	public Set<House> getHouse() {
		return house;
	}


	public void setHouse(Set<House> house) {
		this.house = house;
	}


	public int getCodeid() {
		return codeid;
	}


	public void setCodeid(int codeid) {
		this.codeid = codeid;
	}


	public String getCityName() {
		return cityName;
	}


	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	@Override
	public String toString() {
		return "City{" +
				"codeid=" + codeid +
				", parent=" + parent +
				", parentid=" + parentid +
				", cityName='" + cityName + '\'' +
				", house=" + house +
				'}';
	}
}
